<template>
  <div class="common-layout ">
    <el-container>
      <el-aside width="250px" class="aside"><oj/></el-aside>
      <el-container>
        <el-header class="header">
        <el-icon><search/></el-icon>
        <el-icon><share/></el-icon>
        <el-dropdown>
            <span class="el-dropdown-link">
            <span class="se">username</span>
              <el-icon class="el-icon--right">
              <arrow-down/>
            </el-icon>
            </span>
            <template #dropdown>
            <el-dropdown-menu>
            <el-dropdown-item>logout</el-dropdown-item>
            </el-dropdown-menu>
            </template>
          </el-dropdown>
        </el-header>
        <el-main class="main"><router-view></router-view></el-main>
        <el-footer class="footer">Build Version:20210929bd</el-footer>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import oj from "./components/MainOj.vue";
import { Search, Share } from "@element-plus/icons-vue";
import { ArrowDown } from "@element-plus/icons-vue";
export default {
  name: "App",
  components: {
    oj,
    Search,
    Share,
    ArrowDown,
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}
.header {
  text-align: right;
  line-height: 55px;
  background-color: #f9fafc;
}
.aside {
  height: 100%;
  text-align: center;
}
.main {
  background-color: #edecec;
}
.footer {
  text-align: center;
  background-color: #edecec;
}
.se{
  line-height: 50px;
}

</style>